package cn.lingyangwl.agile.infra.weixin.mp.service.impl;

import cn.lingyangwl.agile.infra.weixin.mp.model.WxMpContext;
import cn.lingyangwl.agile.infra.weixin.mp.handler.WxMpHandler;
import cn.lingyangwl.agile.infra.weixin.mp.service.MpDraftService;
import me.chanjar.weixin.mp.api.WxMpDraftService;
import me.chanjar.weixin.mp.bean.draft.WxMpAddDraft;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author shenguangyang
 */
@Service
public class MpDraftServiceImpl implements MpDraftService {
    @Resource
    private WxMpHandler wxMpHandler;
    @Override
    public void saveDraft(WxMpAddDraft req) {
        WxMpContext context = wxMpHandler.getContext();
        WxMpDraftService draftService = context.getService().getDraftService();

    }
}
